/* 文字行数 */
@mixin line1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文字行数 */
@mixin line($num: 1) {
  display: box !important;
  overflow: hidden;
  -webkit-line-clamp: $num;
  word-break: break-all;
  word-wrap: break-word;
  -webkit-box-orient: vertical;
}

/* 文本两边对齐 */
@mixin tj {
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-all;
  word-wrap: break-word;
}

/* 水平垂直居中 */
@mixin df-c {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 水平垂直居中 */
@mixin ts-c {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 水平垂直居中 */
@mixin pa-c {
  position: absolute;
  inset: 0;
  margin: auto;
}

/* 垂直居中 */
@mixin ts-t {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

/* 水平居中 */
@mixin ts-l {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
}
